#pragma once
#include "baseoffset.h"

class CSplineOffset :
	public CBaseOffset
{
public:
	CSplineOffset(HDiMineView *view)
		:CBaseOffset(view)
	{
	}
protected:
	virtual int InsertEntity(dmDbLayer *layer,CdmEntityBase *entity,double offset,dmDbEntity *&entityout);
	virtual int CallBack(dmDbLayer* layer,dmDPoint*,int,CdmEntityBase*& entity);
private:
	int MakeSpline(dmDbLayer* layer,dmDPoint *pts,int npts,CdmEntityBase*& entityout);
};
